package com.czx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_message")
public class Message {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer fromId;  //发送者的id
    private Integer toId;   //接收者的id
    private Integer conversationId;  //会话id
    private String content;  //消息内容
    private Integer status;  //消息状态  0未读 1已读 2删除
    private Date createTime;//会话创建时间
    private Integer type;//系统消息类型 0评论 1关注 2点赞 3私信
    private Integer entityId;//回复信息类型
    @TableField(exist = false)
    private Integer letterCount;

}
